import request from '@/utils/request'

// 获取用户信息
export const userGetInfoService = ()=>request.get('/user/info')

// 更新用户信息
export const userUpdateInfoSerive = (data)=>request.post('/user/update/info',data)
// 更新用户密码
export const userUpdatePasswordSerive = ({oldPwd,newPwd})=>request.post('/user/update/password',{oldPwd,newPwd})
// 更新用户头像
export const userUpdateAvatarSerive = (image_url)=>request.post('/user/update/avatar',{image_url})